package cn.lingyangwl.agile.model.enums;

import cn.lingyangwl.agile.model.constants.RequestCons;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 终端的枚举
 * @see RequestCons.Headers
 * @author shenguangyang
 */
@RequiredArgsConstructor
@Getter
public enum TerminalEnum implements BaseStatGroupField  {

    DEFAULT("1", "默认"),
    WECHAT_MINI_PROGRAM("10", "微信小程序"),
    WECHAT_WAP("11", "微信公众号"),
    H5("20", "H5 网页"),
    APP("21", "手机 App"),

    // 管理端用户注册
    ADMIN("90", "管理端"),
    OTHER("99", "其他"),
    ;

    /**
     * 终端
     */
    private final String terminal;

    /**
     * 终端名
     */
    private final String name;


    public static String[] of() {
        return new String[]{};
    }

    @Override
    public String getValue() {
        return terminal;
    }
}
